<template>
  <div>
     <img src="./assests/fad0655d562969bfe7380db7b3b3ab7.jpg" alt="" v-show="flag">
    <button @click="fn()">点击显示影藏</button>

    <div>
      <div v-if="age>=60?true:false">年龄大于60岁唱跳rap</div>
      <div v-else-if="age>=30?true:false">年龄大于30岁唱跳抽烟喝酒烫头</div>
      <div v-else-if="age>=20?true:false">年龄大于20岁唱跳煮茶焚香下棋画画</div>
      <div v-else-if="age<20?true:false">年龄大于60岁练习广场舞</div>
    </div>
   </div>

</template>
 
<script>
export default {
 
  data() {
    return {
      flag:true,
      age:20,
    };
  },
  methods: {
    fn(){
      this.flag=!this.flag
    }
  }
};
</script>

<style scoped>
     
</style>